<?php

include '../functions.php'; 

$str = "学并xuebingsi88思官网www.xuebingsiwang.com学并xuebingsi99思论坛  http://bbs.xuebingsiwang.com我在学并思的xuebingsi77网名叫xuebingsi";


$preg = "/xuebingsi(\d{2})/";


// $c = preg_match($preg, $str);
// 
$c = preg_match_all($preg, $str, $out);


// var_dump($c);

// var_dump($out);


$str = <<<xbs
<a  data-son="yes" href='http://www.daimajiayuan.com/list-58.html' title='网页代码'>代 码</a>
					<a  data-son="yes" href='http://www.daimajiayuan.com/list-20.html' title='网页模板'>模 板</a>
					<a  id="select" data-son="yes" href='http://www.daimajiayuan.com/list-126.html' title='教程阅读'>教 程</a>
					<a  data-son="yes" href='http://www.daimajiayuan.com/list-100.html' title='素材下载'>素 材</a>
					<a  data-son="yes" href='http://www.daimajiayuan.com/list-4.html' title='网页特效'>特 效</a>
					<a  href='http://www.daimajiayuan.com/list-81.html' title='插件下载'>插 件</a>
					<a  href='http://www.daimajiayuan.com/list-55.html' title='站长资料'>资 料</a>
					<a  href='http://www.daimajiayuan.com/list-54.html' title='IT互联网'>新 闻</a>
					<a href='http://www.daimajiayuan.com/webtools/' title='工具'>工具</a>
xbs;


$str = file_get_contents("http://www.daimajiayuan.com/sitejs-18604-1.html");

// echo $str;exit;

// var_dump($data);exit;

// $preg = "/>(.+)</";

// $preg = "/(href='(.+?)'|href=\"(.+?)\")/";
// 
// 
$preg = "/<li><a href=\"(.+?)\" title=\".+?\"><i class=\"fa .+?\"><\/i>.+?<\/a><\/li>
/";

$c = preg_match_all($preg, $str, $out);

var_dump($c);

var_dump($out);


邮箱正则
身份正则
提取拉勾网

















 ?>